package th.kmutt.se.is;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageButton;
import android.widget.ListView;

public class RoomChargesList extends Fragment implements OnClickListener, OnItemClickListener{
	
	View view;
	ImageButton btnMenu1;
	ListView list;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.screen_room_chargeslist, container, false);
		init();
		return view;
	}
	
	private void init(){
		btnMenu1 = (ImageButton) view.findViewById(R.id.btnMenu1);
		list = (ListView) view.findViewById(R.id.roomList);
		
		btnMenu1.setOnClickListener(this);
	}

	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.btnMenu1:{
				Intent intent = new Intent(getActivity(), FragmentWrapper.class);
				startActivity(intent);
			}break;
		}
	}
}